import Vue from 'vue'
//antUi框架
import './public/antd.js'
import './components/index.js'
import App from './App.vue'
import router from './router'
import store from './store'
import bootstrap from './bootstrap.js'
import UmyUi from 'umy-ui'
import 'umy-ui/lib/theme-chalk/index.css'// 引入样式

Vue.use(UmyUi)
// 引入样式
import 'vue-easytable/libs/themes-base/index.css'
// 导入 table 和 分页组件
import {VTable,VPagination} from 'vue-easytable'

// 注册到全局
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
Vue.config.productionTip = false
//测试git提交23
new Vue({
  router,
  store,
  created: bootstrap,
  async beforeCreate(){
    function sleep(){
      return new Promise((resolve,reject)=>{
        setTimeout(() => {
          resolve(1)
        }, 5000)
      })
    }

    let a = await sleep()

    // console.log('哇啊哈哈哈')

    // console.log('app之前.vue-beforeCreate' + ' ' + a)
  },
  beforeMount (){
    // console.log('beforeMount')
  },
  render: h => h(App)
}).$mount('#app')
